<%@ page language="java" pageEncoding="utf-8"%>

<!--/*** CSS样式 **/-->
<style>
    #startTime{ width: 220px;height: 27px;border: 1px solid rgb(65, 137, 203);color: rgb(65, 137, 203);padding: 5px 5px 5px 8px;font-size: 13px; }
</style>


<!--/*** 控件HTML标签 **/-->
<div class="col-md-12" style="margin-top:10px;padding: 0 0 0 5px;">
    <div class="col-md-3" style="padding: 0;">
        <label style="color: rgb(65, 137, 203);font-size: 12px;padding: 0px;margin: 0px;" class="keyCss">开始时间:</label>
    </div>
    <div class="col-md-9">
        <input id="startTime" type="text">
    </div>
</div>


<script>
//    $(document).ready(function () {
        var date = new Date();
        var hour = date.getHours();
        if(hour > 7) {
            date.setDate(date.getDate()-1);
        }else {
            date.setDate(date.getDate()-2);
        }
        function iniDateTimePicker_start () {
            laydate.render({
                elem: '#startTime',
                type: 'date',
                position: 'fixed',
                theme: '#4189CB',
                value: date
                ,done: function(value, date, endDate){
                    if ($("#lotIdSumo").length > 0) initLotIdListFnc();
                    if ($("#lotNumberSumo").length > 0) iniLotNumberInfoFnc(value);
                    if ($("#componentCellEfficiencySumo").length > 0) iniComponentCellEfficiencySumoInfoFnc(value);
                    if ($("#productMaterialSumo").length > 0) iniProductMaterialSumoInfoFnc(value);
                    if ($("#bomMaterialSumo").length > 0) iniBomMaterialSumoInfoFnc(value);
                }
            });
        };
        iniDateTimePicker_start();
//    });
</script>